package net;

import java.io.IOException;

import org.apache.pdfbox.exceptions.COSVisitorException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;

public class IDK
{
	public static void test() throws IOException, COSVisitorException
	{
		
		PDDocument doc = new PDDocument();

		PDPage page = new PDPage();

		doc.addPage(page);

		PDPageContentStream contentStream = new PDPageContentStream(doc, page);

		contentStream.beginText();

		contentStream.setTextRotation(-Math.PI/8, 0, 0);

		contentStream.setFont( PDType1Font.TIMES_ROMAN, 12 );

		contentStream.moveTextPositionByAmount( 100, 700 );

		contentStream.drawString( "Hello World" );

		contentStream.endText();

		contentStream.close();

		doc.save("src/resources/trial1.pdf");

		doc.close();



	}
}
